package com.hins.demo.model.transfer.valueobject;

import com.hins.component.exception.Assert;
import lombok.Value;

/**
 * Description: 账户ID
 *
 * @author wenjiaqi
 * @date 2021/5/14 19:08
 */
@Value
public class AccountId {
    Integer value;

    public AccountId(Integer value) {
        Assert.isFalse(value == null);
        Assert.isFalse(value < 0);

        this.value = value;
    }
}
